/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CRFrame.java
 *
 * Created on Aug 25, 2010, 1:27:13 AM
 */

package chainreaction;

import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;

/**
 *
 * @author Jordan
 */
public class CRFrame extends javax.swing.JFrame {
    final static int GAME_SIZE_X = 400;
    final static int GAME_SIZE_Y = 300;

    /** Creates new form CRFrame */
    public CRFrame() {
        setLayout(null);
        setSize(new Dimension(GAME_SIZE_X, GAME_SIZE_Y + CRPanel.STAT_DISP_SIZE));
        setTitle("Chain Reaction");
        setDefaultCloseOperation(javax.swing.JFrame.EXIT_ON_CLOSE);
        setBackground(java.awt.Color.BLACK);

        CRPanel panel = new CRPanel(GAME_SIZE_X, GAME_SIZE_Y);
        panel.setSize(new Dimension(GAME_SIZE_X, GAME_SIZE_Y + CRPanel.STAT_DISP_SIZE));
        add(panel);
        validate();
    }
}
